﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Threading;

namespace PostSharpModel.Cache
{
    public class CacheOperations
    {
        /// <summary>
        /// 带缓存，因为缓存key为方法名，所以每次输出都是第一个数字
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        [Cache]
        public static string OutPutInCache(string input)
        {
            return input;
        }

        /// <summary>
        /// 不带缓存，每次输入数字跟输出数字相同
        /// </summary>
        /// <param name="number"></param>
        /// <returns></returns>
        public static string OutPutNoCache(string input)
        {
            return input;
        }
    }
}
